package net.borlis.errors.providers.common;

import net.borlis.errors.exceptions.IExceptionKeyMaster;
import net.borlis.errors.exceptions.ServerException;

import java.util.Set;

/**
 * @author alex@borlis.net
 */
public interface IServerExceptionProcessor {

    ServerException newServerException(String code);
    ServerException newServerException(String code, Throwable cause);

    Set<IExceptionKeyMaster> getSupportedCodes();

}
